// Beginning Game Programming
// Chapter 9
// dxaudio.h - DirectSound framework header file


#ifndef _DXAUDIO_H
#define _DXAUDIO_H

#include "dsutil.h"
#include <string>
using namespace std;
//primary DirectSound object

//extern CSoundManager *dsound;
//
////function prototypes
//int Init_DirectSound(HWND);
//CSound *LoadSound(LPWSTR filename);
//void PlaySound(CSound *);
//void LoopSound(CSound *);
//void StopSound(CSound *);

class DxAudio
{
public:
	int Init_DirectSound(HWND);
	CSound *LoadSound(LPWSTR filename);
	void PlaySound(CSound *);
	void LoopSound(CSound *);
	void StopSound(CSound *);
protected:
private:
	CSoundManager *dsound;
};

#endif

